
// ClientDlg.h : header file
//

#pragma once
#include "afxcmn.h"
#include "afxwin.h"
#include "WinXPButtonST.h"


#define WM_SHOWTASK  WM_USER+1

// CClientDlg dialog
class CClientDlg : public CDialogEx
{
// Construction
public:
	CClientDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_CLIENT_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support


// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg LRESULT OnShowTask(WPARAM wParam,LPARAM lParam); 
	DECLARE_MESSAGE_MAP()


private:
	void InitUser();
	void MinForm();
	void DoShake();

private:
	CTreeCtrl m_userTree;
	HTREEITEM m_hRoot;
	int m_AllIndex;
	CImageList m_imagelist;
	CComboBox m_userList;
	CWinXPButtonST m_BtnSeparator;
	CButtonST m_Shak;
	BOOL m_Separator;
	NOTIFYICONDATA m_nid;
	CButtonST m_btnShake;

public:
	afx_msg void OnBnClickedButtonSegment();
	afx_msg void OnClose();
	afx_msg void OnDestroy();
	afx_msg void OnBnClickedButtonShake();
};
